import { getLanguage } from '@/lang/index'
const state = {
  name: '11',
  language: getLanguage(),
};

const mutations = {
  SET_LANGUAGE: (state, language) => {
    state.language = language
  }
};

const actions = {
  setLanguage({ commit }, language) {
    commit('SET_LANGUAGE', language)
  }
};

export default {
  namespaced: true,
  state,
  mutations,
  actions
};
